<?php

namespace App\Model;
use App\Model\ShopGoodModel;

use Illuminate\Database\Eloquent\Model;



//后台模块表
class StoreGoodModel extends Model
{
    //定义一个表名
    protected $table = 'store_good';
    //定义主键
    protected $primaryKey = 'id';
	protected $guarded = [];

    public function store()
    {
        return $this->belongsTo('App\Model\StoreModel','sid','id');
    }


 
}
